package com.courir;

import java.io.File;

import lombok.Getter;
import lombok.val;

import org.joda.time.DateTime;

import com.courir.data.CsvReader;

/**
 * (Manuelles) Dependency-Injection Modul.
 */
public class Module {

	@Getter
	private final VlData data;

	/** TestModul (für Report preview). */
	public Module() {
		this(
				"D:\\Projekte\\lombok\\workspace\\de.fcstraberg.vlreport\\data\\ASCII.ssv");
	}

	Module(String[] args) {
		this(args[0]);
	}

	Module(String path) {
		val date = new DateTime().withTime(0, 0, 0, 0);
		data = new VlData(date, new File(path), new CsvReader());
	}
}
